package com.kyrie.dto;

import com.kyrie.annotation.EnumValidator;
import com.kyrie.vo.DictOperateEnum;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/***
 * 描述: 数据字典操作实体：新增、删除、更新
 *
 * @author wuxiang
 * @date 2020-04-14 11:35
 */
@Data
public class OperateDictionariesDto implements Serializable {

    private static final long serialVersionUID = -8893194005228442084L;

    @NotBlank(message = "数据字典操作类型[operateType]不能为空,add-新增、delete-删除、update-更新")
    @EnumValidator(value = DictOperateEnum.class,message = "数据字典操作类型[operateType]传入非法")
    private String operateType;

    private String userNo;

    @NotBlank(message = "数据字典一级类型[typeId]不能为空")
    private String typeId;

    private String typeName;

    @NotBlank(message = "数据字典二级类型[valId]不能为空")
    private String valId;

    private String seqId;

    private String valName;

    private String extVal;

    private String status;

    private Integer orderBy;

    private String remake;

    private String createPerson;

}
